<!DOCTYPE html>
<html>
 <head>
 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  <link rel="stylesheet" href="http://www.12301.cc/css/appmsg.css"/>

</head>
<body>
    <div class="main_bd"> 
      <div class="media_preview_area"> 
       <div class="appmsg multi editing"> 
        <div id="js_appmsg_preview" class="appmsg_content"> 
         <div id="appmsgItem1" data-fileid="" data-id="1" class="js_appmsg_item "> 
          <div class="appmsg_info"> 
           <em class="appmsg_date"></em> 
          </div> 
          <div class="cover_appmsg_item"> 
           <h4 class="appmsg_title"><a href="javascript:void(0);" onclick="return false;" target="_blank">标题</a></h4> 
           <div class="appmsg_thumb_wrp"> 
            <img class="js_appmsg_thumb appmsg_thumb" src="" /> 
            <i class="appmsg_thumb default">封面图片</i> 
           </div> 
          
          </div> 
         </div>
        
        </div> 
       </div> 
      </div> 
      <div class="media_edit_area"> 
	  <form name="mainForm" id="mainForm" class="ui-form" method="post" action="call/uploadThumbImage_d.php" enctype="multipart/form-data" target="hideFrame">  

                <input type="hidden" name="upload_mth" id="upload_mth" value="1"/>
                <input type="hidden" name="action" value="createNewColumn"/>
                <input type="hidden" name="ptype" value="<?=$ptype?>"/>
       <div id="js_appmsg_editor">
        <div class="appmsg_editor" style="margin-top: 0px;"> 
         <div class="inner"> 
          <div class="appmsg_edit_item"> 
           <label for="" class="frm_label">标题</label> 
           <span class="frm_input_box"><input type="text" class="frm_input js_title" /></span> 
           <div class="frm_msg fail js_title_error">
            标题不能为空且长度不能超过64字
           </div> 
          </div> 
          <div class="appmsg_edit_item"> 
           <label for="" class="frm_label"> <strong class="title">作者</strong> <p class="tips l">（选填）</p> </label> 
           <span class="frm_input_box"><input type="text" class="frm_input js_author " /></span> 
           <div class="frm_msg fail js_author_error">
            作者不能超过8个字
           </div> 
          </div> 
          <div class="appmsg_edit_item"> 
           <label for="" class="frm_label"> <strong class="title">封面</strong> <p class="js_cover_tip tips">（大图片建议尺寸：900像素 * 500像素）</p> </label> 
           <div class="upload_wrap"> 
            <div class="upload_box"> 
             <div class="upload_area"> 
              <a id="js_appmsg_upload_cover" href="javascript:void(0);" onclick="return false;" class="btn btn_upload"> 上传 </a> 
             </div> 
            </div>&nbsp; 
           </div> 
          <div class="ui-form-item" style="position: relative;">
                        <input type="hidden" name="thumb_img" id="thumb_img" value="<?=$imgUrl?>"/>
                        <label class="ui-label">
                            <span class="ui-form-required">*</span>缩略图
                        </label>
                        <a id="lnk_prv" target="_blank" title="点击查看原图" href="<?=$imgUrl?>">
                            <img style="width:240px;height:160px;" src="<?=$imgUrl?>" id="preview" />
                        </a>
                        <div class="uploadImg">
                            <p class="title">重新上传缩略图：</p>
                            <input type="file" name="upfile" id="imgup"/>
                            <input type="button" id="BtnUpload" value="上传" class="ui-button ui-button-swhite"/>
                            <p class="ui-form-explain">点击上传小于1M的JPG或GIF格式的图片,<br/>建议图片尺寸：宽350像素，高230像素</p>
                            <p id="waitingUpload" class="ui-form-other"></p>
                        </div>
                        <p class="ui-form-explain">默认将使用商户提供的缩略图作为页面展示的图片</p>
                    </div>
           <p class="frm_tips"> <label for="" class="frm_checkbox_label js_show_cover_pic selected"> <i class="icon_checkbox"></i> <input type="checkbox" class="frm_checkbox" checked="" /> 封面图片显示在正文中 </label> </p> 
           <div class="frm_msg fail js_cover_error">
            必须插入一张图片
           </div> 
          </div> 
          <p><a class="js_addDesc" href="javascript:void(0);" onclick="return false;" style="display: none;">添加摘要</a></p> 
          <div class="js_desc_area dn appmsg_edit_item" style="display: none;"> 
           <label for="" class="frm_label">摘要</label> 
           <span class="frm_textarea_box"><textarea class="js_desc frm_textarea"></textarea></span> 
           <div class="frm_msg fail js_desc_error"></div> 
          </div> 
          <div id="js_ueditor" class="appmsg_edit_item content_edit"> 
           <label for="" class="frm_label"> <strong class="title">正文</strong> <p class="tips l"> <em id="js_auto_tips"></em> <a id="js_cancle" style="display:none;" href="javascript:void(0);" onclick="return false;">取消</a> </p> </label> 
           <div class="frm_msg fail js_catch_tips" style="display: none;">
            有5张图片粘贴失败
           </div> 
           <div class="frm_msg fail js_content_error">
            正文不能为空且长度不能超过20000字
           </div> 
           
          </div> 
          <p><a class="js_addURL" href="javascript:void(0);" onclick="return false;">添加原文链接</a></p> 
          <div class="js_url_area dn appmsg_edit_item" style="display: none;"> 
           <label for="" class="frm_label">添加原文链接</label> 
           <span class="frm_input_box"><input type="text" class="js_url frm_input" /></span> 
           <div class="frm_msg fail js_url_error">
            链接不合法
           </div> 
          </div> 
         </div> 
        
        </div> 
       </div> 
      </div> 
      <div class="tool_area"> 
       <div class="tool_bar border tc"> 
        <span id="js_submit" class="btn btn_input btn_primary"><button>保存</button></span> 
        <span id="js_preview" class="btn btn_input btn_default"><button>预览</button></span> 
       </div> 
      </div> 
     </div> 
	 </form>
	 <script>
 $("#BtnUpload").bind('click',function(){
        if(!$("input#imgup").val().length) return;
        $("form#mainForm").submit();
        $("#waitingUpload").html('<img src="images/loading.gif" alt="图片上传中"/>图片上传中..').show();
    });
</script>
	 <iframe src="about:blank" style="display: none;" id="hideFrame" name="hideFrame" frameborder="0"></iframe>

</body>
</html>